import { createRouter, createWebHistory } from 'vue-router'
import route2 from "./route2"
const routes = [
  {
    path: '/Home',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  ...route2,
  {
    path: '/Newhome',
    name: '新房',
    component: () => import('../views/Newhome.vue')
  },
  {
    path: '/Two',
    name: '二手房',
    component: () => import('../views/Two.vue')
  },
  {
    path: '/Chuzu',
    name: '出租房',
    component: () => import('../views/Chuzu.vue')
  },
  {
    path: '/Login',
    name: '登录',
    component: () => import('../views/Login.vue')
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
